<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>QQ share spike</title>
  <script src="https://cdn.bootcss.com/eruda/1.4.4/eruda.js"></script>
</head>
<body>
  <h1>这是个测试页面 time: 22:43</h1>
  <a href="share2.html">share2.html</a>
  <button id="share">Share</button>
  <script>
    eruda.init();
    </script>
  <script src="https://open.mobile.qq.com/sdk/qqapi.js?_bid=152"></script>
  <script type="text/javascript">
    
    window.mqq && mqq.data && mqq.data.setShareInfo({
      share_url:location.href,
      title: 'H5应用index',
      desc: 'H5开放平台',
      image_url: 'http://wqs.jd.com/promote/2015/childrensday/images/share.png'
    }, () => {
      console.log('callback')
    });


    document.getElementById('share').addEventListener('click', function() {
      mqq.ui.showShareMenu();
    })
   
  </script>
</body>
</html>